<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="js/jquery.min.js"></script>
  <script src="js/jquery.form.min.js"></script>
</head>
<body>
  <input type="button" id="userInfo" name=userInfo value="获取当前登录用户信息" >
  <input type="button" id='userAuth' name="userAuth" value="获得登录用户在项目管理下的权限数据" />
  <div id="content"></div>
  <script>
    $(function () {
      $('#userInfo').click(function () {
        	$.ajax({
              url: '/file-server/file/getUserAuth?type=userInfo',
              type: 'get',
              contentType: false,
              success: function (res, statusText, headers) {
                if (res.success) {
                	$('#content').html(res.data);
                } else {
                  alert('失败');
                  console.log(res);
                }
              }
            });
      });
      
      $('#userAuth').click(function () {
        	$.ajax({
              url: '/file-server/file/getUserAuth?type=userAuth',
              type: 'get',
              contentType: false,
              success: function (res, statusText, headers) {
                if (res.success) {
                	$('#content').html(res.data);
                } else {
                  alert('失败');
                  console.log(res);
                }
              }
            });
      })
    });


  </script>
</body>

</html>